const { MongoClient, ObjectId } = require("mongodb");
// const uri = "mongodb://localhost:27017";
const uri = "mongodb://192.168.39.35:27017";
// const uri = "mongodb://localhost:27017"

// 数据库 连接
const client = new MongoClient(uri);
client.connect().then(() => {
    console.log("数据库连接成功");
});
// db 数据库
const db = client.db("blog");
console.log(db);

client.close();
